﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZX.Web.UI.Controls;
using System.Data;
using ZX.BLL.Extend;
using ZX.EHR.Library;
using ZX.DBModule;
using ZX.BLL;
using System.Web.Security;
using ZX.Common;
using ZX.SYS.Bussiness;
using System.Configuration;
namespace ZX.WebApp.Message
{
    public partial class msglist : BasePage
    {
        public static readonly string SmsTongji = ConfigurationManager.AppSettings["SmsTongji"].ToString();
        public static readonly string SmsUsern = ConfigurationManager.AppSettings["SmsUname"].ToString();
        public static readonly string SmsUpass = ConfigurationManager.AppSettings["SmsUpass"].ToString();

        public static readonly string MmsTongji = ConfigurationManager.AppSettings["MmsTongji"].ToString();
        public static readonly string MmsUsern = ConfigurationManager.AppSettings["mmsUname"].ToString();
        public static readonly string MmsUpass = ConfigurationManager.AppSettings["mmsUpass"].ToString();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                labcaixin.Text = getdata(MmsTongji + "?account=" + MmsUsern + "&password=" + MmsUpass);
                labduanxin.Text = getdata(SmsTongji + "?username=" + SmsUsern + "&password=" + SmsUpass);

            }
        }
        public string getdata(string Url)
        {
            MQOut mo = new MQOut();
            return mo.GetPageContent(Url, string.Empty);
        }
    }
}